package com.zp.self.module.令牌桶.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zp.self.module.令牌桶.entity.SysUser;
import com.zp.self.module.令牌桶.mapper.SysUserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author zengpeng
 * @since 2020-12-15
 */
@Slf4j
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {


    @Override
    @Cacheable(cacheNames = "SysUserAll")
    public SysUser findById(long id) {
        return this.getBaseMapper().selectById(id);
    }

}
